﻿<%@ Page Language="c#" CodeBehind="ORole.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.Role.ORolePage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>ORole</title>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
  <script language="javascript">
  //<!--
	function ReturnBack()
	{
    window.location.href ="Listview.aspx?Role_ID=<%=RoleID%>&DisplayType=<%=(int)DisplayType%>"
	}
  //-->
  </script>
</head>
<body>
  <uds:PageTitle runat="server" Title="角色管理" />
  <form id="ORole" method="post" runat="server">
    <div style="padding: 10px 2px 0 2px;">
      <table cellspacing="0" cellpadding="0" border="0">
        <tr>
          <td class="<%= DisplayType == PageDisplayType.Add ? "selectedTab" : "unSelectedTab"%>"><a href="oRole.aspx?Role_ID=<%=RoleID%>&amp;DisplayType=<%= (int)PageDisplayType.Add %>" class="Newbutton">创建角色</a></td>
          <td class="<%= DisplayType == PageDisplayType.Edit ? "selectedTab" : "unSelectedTab"%>"><a href="oRole.aspx?Role_ID=<%=RoleID%>&amp;DisplayType=<%= (int)PageDisplayType.Edit %>" class="Newbutton">修改角色</a></td>
          <td class="<%= DisplayType == PageDisplayType.Delete ? "selectedTab" : "unSelectedTab"%>"><a href="oRole.aspx?Role_ID=<%=RoleID%>&amp;DisplayType=<%= (int)PageDisplayType.Delete %>" class="Newbutton">删除角色</a></td>
        </tr>
      </table>
    </div>
    <table class="gbtext" id="tabModify" style="border-collapse: collapse" bordercolor="#93bee2" cellspacing="0" cellpadding="4" width="100%" align="center" border="1" runat="server">
      <tr>
        <td style="width: 91px">角色名称</td>
        <td>
          <asp:TextBox ID="txtMRoleName" Width="463px" EnableViewState="true" CssClass="inputsta" runat="server" />
          <asp:RequiredFieldValidator runat="server" ControlToValidate="txtMRoleName" ErrorMessage="请输入角色名" />
        </td>
      </tr>
      <tr>
        <td style="width: 91px" valign="top">角色简介：</td>
        <td>
          <asp:TextBox ID="txtMRoleDescription" Width="462px" runat="server" CssClass="InputSta" Rows="8" TextMode="MultiLine" />
        </td>
      </tr>
      <tr>
        <td style="width: 91px"></td>
        <td>
          <input class="ButtonCss" id="cmdModify" type="submit" value="修改角色" name="cmdModify" runat="server">
          <input class="ButtonCss" onclick="ReturnBack();" type="button" value="返回" name="cmdModifyBack">
        </td>
      </tr>
    </table>
    <table class="gbtext" id="tabDelete" style="border-collapse: collapse" bordercolor="#93bee2" cellspacing="0" cellpadding="4" width="100%" align="center" border="1" runat="server">
      <tr>
        <td style="width: 96px">角色名称：</td>
        <td><asp:Label ID="delRoleName" runat="server" /></td>
      </tr>
      <tr>
        <td style="width: 96px"></td>
        <td>
          <input class="ButtonCss" id="cmdDelete" type="submit" value="删除角色" name="cmdDelete" runat="server">
          <input class="ButtonCss" onclick="ReturnBack();" type="button" value="返回" name="Reset">
        </td>
      </tr>
    </table>
    <table class="gbtext" id="tabAdd" style="border-collapse: collapse" bordercolor="#93bee2" cellspacing="0" cellpadding="4" width="100%" align="center" border="1" runat="server">
      <tr>
        <td style="width: 94px">角色名称：</td>
        <td>
          <asp:TextBox ID="txtARoleName" Width="462px" CssClass="inputsta" runat="server" />
          <asp:RequiredFieldValidator runat="server" ControlToValidate="txtARoleName" ErrorMessage="请输入角色名" />
        </td>
      </tr>
      <tr>
        <td style="width: 94px" valign="top">角色简介：</td>
        <td>
          <asp:TextBox ID="txtARoleDescription" Width="462px" CssClass="inputsta" runat="server" Rows="8" TextMode="MultiLine" />
        </td>
      </tr>
      <tr>
        <td style="width: 94px"></td>
        <td>
          <input class="ButtonCss " id="cmdAdd" accesskey="o" type="submit" value="添加角色" name="cmdAdd" runat="server">
          <input class="ButtonCss" onclick="ReturnBack()" type="button" value="返回" name="cmdAddBack">
        </td>
      </tr>
    </table>
  </form>
</body>
</html>
